"""
业务日志 | 映射
"""

from mapping.base_mapping import (
    MappingBase,
    get_field_map,
)
from models.other import BizLog
from models.vo import (
    BizLogListPage,
    BizLogListVO,
)
from utils.converter_utils import TimeConverter


class BizLogMapping(MappingBase):
    """ 业务日志 | 映射 """

    po = BizLog
    list_vo = BizLogListVO
    vo_page = BizLogListPage

    list_mapping = {
        "log_time": get_field_map(["log_time"], func=TimeConverter.datetime_2_datetime_full_str),
    }
